#include <iostream>
#include <unistd.h>
#include "ThreadPool.hpp"
#include "Task.hpp"
using namespace std;

int main()
{
    ThreadPool<Task> tp;
    tp.Start();

    while(true)
    {
        tp.Push(Task());
        sleep(1);
    }

    tp.Wait();
    return 0;
}